package com.nightsoul.springboottest2.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.nightsoul.springboottest2.domain.User;
import com.nightsoul.springboottest2.service.UserService;

@RestController
public class UserController {
	@Resource
	private UserService userService;

	@RequestMapping("/users")
	public List<User> getUsers() {
		return this.userService.getUsers();
	}
}
